// const { method } = require('@/utils/request/request')
import { method } from "@/utils/request/method"
const { get, post, dele } = method

// 登录
export const GetMerList = params => get('/takeaway/merchant-info/get-merList', params)
// 获取快递订单
export const GetExpressOrderList = params => post('/lhfp-serpersonnel-service/deliveryOrder/getExpressOrderList', params)
// 网格员开启-暂停接单
export const PauseAcceptingOrders = params => post('/lhfp-serpersonnel-service/deliveryPersonDetails/pauseAcceptingOrders', params)
// 修改订单状态
export const UpdOrdersStatus = params => post('/lhfp-serpersonnel-service/deliveryOrder/updOrdersStatus', params)
// 网格员查看订单详情
export const ExpressOrderDetail = params => post('/lhfp-serpersonnel-service/deliveryOrder/expressOrderDetails', params)

// 网格员获取收入列表
export const ExpressRecords = params => post('/lhfp-serpersonnel-service/deliveryOrder/expressRecords', params)
// 网格员获取收入统计
export const DeliverySettlement = params => post('/lhfp-serpersonnel-service/deliveryOrder/deliverySettlement', params)

// 我的
export const IndexDelivery = params => post('/lhfp-user-service/deliveryPerson/indexDelivery', params)
// 获取用户账户详情信息
export const WalletRecordPage = params => post('/lhfp-user-service/walletRecords/walletRecordPage', params)

// 验证码登录
export const LoginBySms = params => post('/lhfp-auth-service/auth/loginBySms', params)
// 密码登录
export const LoginByPass = params => post('/lhfp-auth-service/auth/loginByPass', params)
// 发送短信验证码
export const SmsByPhone = params => post('/lhfp-auth-service/auth/smsByPhone', params)

// 管理员
// 查询未处理单数及个人信息我的
export const GetApplyCount = params => get('/lhfp-serpersonnel-service/applyTable/getApplyCount', params)
// 审核获取列表
export const PageList = params => post('/lhfp-serpersonnel-service/applyTable/pageList', params)
// 提现审核
export const Examine = params => post('/lhfp-serpersonnel-service/withdraw/examine', params)
// 审核查询申请信息
export const GetInfoById = params => get('/lhfp-serpersonnel-service/applyTable/getInfoById', params)
// 审核结果
export const UpdateStatus = params => post('/lhfp-serpersonnel-service/applyTable/updateStatus', params)
// 根据团长userId获取小区信息
export const GetUserIdTeamLeader = params => post('/lhfp-serpersonnel-service/community/getUserIdTeamLeader', params)
// 获取开放小区分页列表
export const CommunityPageList = params => post('/lhfp-serpersonnel-service/community/pageList', params)

// 跑腿员
// 获取银行卡编码列表
export const GetList = params => get('/lhfp-serpersonnel-service/bankCode/getList', params)
// 新增或修改银行卡
export const AddOrUpdate = params => post('/lhfp-serpersonnel-service/bankCar/addOrUpdate', params)
// 获取用户绑定银行卡
export const GetBank = params => get('/lhfp-serpersonnel-service/bankCar/getBank', params)
// 申请提现
export const WithdrawAdd = params => post('/lhfp-serpersonnel-service/withdraw/add', params)
// 获取银行卡编码下拉数据
export const GetBySuperiorCode = params => get('/lhfp-serpersonnel-service/fyBankDict/getBySuperiorCode', params)
// 我的
export const DeliveryUserInfo = params => get('/lhfp-user-service/user/deliveryUserInfo', params)
// 保证金充值
export const BondRecharge = params => post('/lhfp-user-service/recharge/bondRecharge', params)

// 团长端
// 团长-我的
export const TeamLeaderUser = params => post('/lhfp-serpersonnel-service/teamLeader/teamLeaderUser', params)
// 团长首页数据
export const TeamLeaderIndex = params => post('/lhfp-serpersonnel-service/teamLeader/teamLeaderIndex', params)
// 团长首页商品数据
export const TeamLeaderOrderPage = params => post('/lhfp-serpersonnel-service/teamLeader/teamLeaderOrderPage', params)
// 团长充值便利豆配置
export const RechargeBeansConfig = params => post('/lhfp-serpersonnel-service/teamLeader/rechargeBeansConfig', params)
// 获取商品管理商品列表
export const GetUserGoodsInfos = params => post('/lhfp-merchant-service/goodsInfo/getUserGoodsInfos', params)
// 团长获取商品详情
export const GetTeamTeaderGoodsInfo = params => post('/lhfp-merchant-service/goodsInfo/getTeamTeaderGoodsInfo', params)
// 添加修改商品信息
export const AddGoodsInfo = params => post('/lhfp-merchant-service/goodsInfo/addGoodsInfo', params)
// 通过团长uerid获取信息
export const TeamLeaderSite = params => post('/lhfp-serpersonnel-service/site/teamLeaderSite', params)
// 团长获取单个驿站信息
export const TeamLeaderSiteInfo = params => post('/lhfp-serpersonnel-service/site/teamLeaderSiteInfo', params)
// 添加修改驿站
export const AddUpdSite = params => post('/lhfp-serpersonnel-service/site/addUpdSite', params)
// 团长修改商品上下架
export const UpdGoodsInfoisListed = params => post('/lhfp-merchant-service/goodsInfo/updGoodsInfoisListed', params)
// 团长修改商品库存
export const GoodsInfoUpdGoods = params => post('/lhfp-merchant-service/goodsInfo/updGoodsInfoStock', params)
// 团长-二维码信息
export const TeamLeaderQrCodeById = params => post('/lhfp-serpersonnel-service/qrCode/teamLeaderQrCodeById', params)
// 团长-二维码信息
export const UpdQrCode = params => post('/lhfp-serpersonnel-service/qrCode/updQrCode', params)
// 团长-购买便利豆
export const RechargeOrder = params => post('/lhfp-serpersonnel-service/teamLeader/rechargeBeans', params)

// 公共功能
// 上传图片
export const MyUpload = '/lhfp-user-service/file/fileUpload'

// 线上静态资源
export const OnlineStatic = 'https://linghuo-app.oss-cn-chengdu.aliyuncs.com/app-img/project-b/'